package com.ushine.design.design.c_behavioral_pattern.a_chain_of_responsibility.b_example;

/**
 * 采购单类，充当请求类
 *
 * @author yls
 */
public class PurchaseRequest {
    private double amount; //采购
    private int number;   //采购单编号
    private String purpose; //采购目的

    public PurchaseRequest() {

    }

    public PurchaseRequest(double amount, int number, String purpose) {
        super();
        this.amount = amount;
        this.number = number;
        this.purpose = purpose;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getAmount() {
        return amount;
    }

    public String getPurpose() {
        return purpose;
    }

    public int getNumber() {
        return number;
    }

    @Override
    public String toString() {
        return "PurchaseRequest [amount=" + amount + ", number=" + number + ", purpose=" + purpose + "]";
    }


}
